<div class="row-fluid sortable">	
	<div class="box span6" style="width:100%">
		<div class="box-header well" data-original-title>
			<h2>用户列表</h2>
			<div class="box-icon">
				<a href="javascript:add()" class="btn btn-info"><i class="icon-edit icon-white" title="添加客服"></i></a>
			</div>
		</div>
		<div class="box-content">
			<table class="table table-bordered">
				  <thead>
					  <tr>
						  <th>用户名</th>
						  <th>真实姓名</th>
						  <th>密码</th>
						  <th>角色</th>
						  <th>操作</th>                                    
					  </tr>
				  </thead>   
				  <tbody>
					<% if(page && page.data){ %>
						<%  page.data.forEach(function(user){ %> 
							<tr id="<%=user.id %>" >
								<td><%=user.username %></td>
								<td class="center"><%=user.realname %></td>
								<td class="center"><%=user.password %></td>
								<td class="center">
									<span class="label label-success"><% if(user.role==0){ %>管理 <%}else{%>客服<%}%></span>
								</td>
								<td class="center">
									<a class="btn btn-info" href="javaScript:toUpdate('<%=user.id %>');">
										<i class="icon-edit icon-white"></i>  
										修改                                            
									</a>
									<a class="btn btn-danger" href="javascript:del('<%=user.id %>')">
										<i class="icon-trash icon-white"></i> 
										删除
									</a>
								</td>
							</tr>
						<% }) %>
					<% } %>                             
				  </tbody>
			 </table>  
			 <form  id="pageform" action="<%=server.site%>admin/customer/customer_list"" method="post">
			 	<%- include ../../common/page.ejs %>
			 </form> 
		</div>
	</div>
</div>
